﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Practices.Prism.Modularity;
using Microsoft.Practices.Unity;
using Microsoft.Practices.Prism.Regions;

namespace HSE
{
    public class WgtjModule: IModule
    {
        private IRegionManager _regionManager;
        private IUnityContainer _container;

        public WgtjModule(IUnityContainer container, IRegionManager regionManager)
        {
            _container = container;
            _regionManager = regionManager;
        }

        public void Initialize()
        {
            _regionManager.RegisterViewWithRegion("Tjbb_ModuleContainer", typeof(Wgtj));
            _container.RegisterType<object, Wgtj>("Wgtj");
        }
    }
}
